<!--SIF Implementation Specification 2.2-6 (March 17, 2008)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://www.sifinfo.org/infrastructure/2.x" xmlns:sif="http://www.sifinfo.org/infrastructure/2.x" elementFormDefault="qualified">
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="imports/xml/xml.xsd" />
  <xs:complexType name="FoodserviceReimbursementRatesType">
    <xs:annotation>
      <xs:documentation>This object describes the federal, state, local and other reimbursement rates for a school.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SchoolInfoRefId" minOccurs="0" type="sif:IdRefType">
        <xs:annotation>
          <xs:documentation>GUID that identifies the school.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDate" minOccurs="0" type="xs:date">
        <xs:annotation>
          <xs:documentation>Effective start date for the reimbursement rates</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" minOccurs="0" type="xs:date">
        <xs:annotation>
          <xs:documentation>Effective end date for the reimbursement rates</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Program" minOccurs="0" type="sif:ProgramType" />
      <xs:element name="Agencies" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Agency" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Name" minOccurs="0" nillable="true" type="xs:normalizedString">
                    <xs:annotation>
                      <xs:documentation>
								The name of the reimbursing agency. This element is to be used when the Type is set as Other.
							</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Rates" minOccurs="0">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="Rate" minOccurs="0" maxOccurs="unbounded">
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="Value" minOccurs="0" type="xs:decimal">
                                <xs:annotation>
                                  <xs:documentation>The rate value</xs:documentation>
                                </xs:annotation>
                              </xs:element>
                              <xs:element name="MealStatus" minOccurs="0" type="sif:MealStatusType" />
                            </xs:sequence>
                            <xs:attribute name="SevereNeed" use="required">
                              <xs:annotation>
                                <xs:documentation>
								Severe need identifier for the rate. When SevereNeed is Yes then the rate shown is the combined rate.
								For certain programs the severe need identifier does not apply.  In such cases the value NA should
								be used.
							</xs:documentation>
                              </xs:annotation>
                              <xs:simpleType>
                                <xs:restriction base="xs:token">
                                  <xs:enumeration value="Yes" />
                                  <xs:enumeration value="No" />
                                  <xs:enumeration value="NA" />
                                </xs:restriction>
                              </xs:simpleType>
                            </xs:attribute>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
                <xs:attribute name="Type" use="required">
                  <xs:annotation>
                    <xs:documentation>Type of the reimbursing agency.</xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:token">
                      <xs:enumeration value="Federal" />
                      <xs:enumeration value="State" />
                      <xs:enumeration value="Local" />
                      <xs:enumeration value="Other" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="SIF_Metadata" minOccurs="0" nillable="true" type="sif:SIF_MetadataType" />
      <xs:element name="SIF_ExtendedElements" minOccurs="0" nillable="true" type="sif:SIF_ExtendedElementsType" />
    </xs:sequence>
    <xs:attribute name="RefId" use="required" type="sif:RefIdType">
      <xs:annotation>
        <xs:documentation>GUID that identifies this object.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>

  <xs:element name="FoodserviceReimbursementRates" type="sif:FoodserviceReimbursementRatesType" />

</xs:schema>